package com.ysucode.dao.user;

import com.ysucode.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper //告诉spring这个接口是mybatis动态代理生成实现类
public interface RoleMapper {

    @Select("select name from auth_role where id = #{id}")
    Role getById(@Param("id") Integer id);

}
